﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BGCMS.Models.LogOnModel>" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Brjóstagjöf.is
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Innskráning</h2>
    <p>
        Vinsamlegast skráðu inn notendanafn og lykilorð, ef þú hefur ekki aðgang að síðunni
        getur þú skráð þig hér
        <%: Html.ActionLink("Nýskráning", "Register") %>
        .
    </p>
    <% using (Html.BeginForm())
       { %>
    <%: Html.ValidationSummary(true, "Ínnskráning tókst ekki, vinsamlegast leiðréttu villurnar og reyndur aftur") %>
    <div>
        <fieldset>
            <legend>Upplýsingar</legend>
            <div class="editor-label">
                <label for = "UserName">Notendanafn</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(m => m.UserName) %>
                <%: Html.ValidationMessageFor(m => m.UserName) %>
            </div>
            <div class="editor-label">
                <label for = "Password">Lykilorð</label>
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(m => m.Password) %>
                <%: Html.ValidationMessageFor(m => m.Password) %>
            </div>
            <div class="editor-label">
                <%: Html.CheckBoxFor(m => m.RememberMe) %>
                <label for = "RememberMe">Muna eftir mér</label>
            </div>
            
            <p>
                <input type="submit" value="Skrá inn" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>